package com.robotserver.orders.entity;

import org.springframework.context.annotation.Bean;

import java.io.Serializable;

/**
 * jd_tokens
 * @author 
 */
public class JdTokens extends BaseEntity {
    private String unionId;
    private String authKey;
    private Integer type;

    //下面字段不是数据库字段，是临时字段，方便业务使用
    private Long beginTime;  //查询开始时间
    private Long endTime;    //查询结束时间

    @Override
    protected Serializable pkVal() {
        return this.getId();
    }

    public String getUnionId() {
        return unionId;
    }

    public void setUnionId(String unionId) {
        this.unionId = unionId;
    }

    public String getAuthKey() {
        return authKey;
    }

    public void setAuthKey(String authKey) {
        this.authKey = authKey;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    @Override
    public String toString() {
        return unionId;
    }

    public Long getBeginTime() {
        return beginTime;
    }

    public void setBeginTime(Long beginTime) {
        this.beginTime = beginTime;
    }

    public Long getEndTime() {
        return endTime;
    }

    public void setEndTime(Long endTime) {
        this.endTime = endTime;
    }
}